<let/x = 1 />
<effect() {
  document.getElementById("ref").textContent = x;
}/>
<div id="ref">0</div>